package cn.flying.cloud;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ImportResource;

/**
 * 启动类
 *
 * @author: lvyong
 * @date: 2022年09月10日 13:17
 * @version: 1.0
 */
@ServletComponentScan
@EnableDiscoveryClient
@MapperScan(basePackages = "cn.flying.**.mapper")
@ImportResource(value = "classpath:*-context.xml")
@SpringBootApplication(scanBasePackages = "cn.flying.**")
public class CpsApplication {
    private static final Logger logger = LoggerFactory.getLogger(CpsApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(CpsApplication.class, args);
        logger.info("====================审批服务启动成功！=======================");
    }

}

